﻿namespace VkontakteSharp.Endpoints
{
    public class VkontakteAPI {

        public VkontakteConfig VkontakteConfig { get; private set; }
        public string AuthInfo { get; private set; }
        public string Uri { get; set; }

        public VkontakteAPI(VkontakteConfig instagramConfig, string endpoint) : this(instagramConfig, string.Empty, endpoint) { }

        public VkontakteAPI(VkontakteConfig instagramConfig, string authInfo, string endpoint)
        {
            VkontakteConfig = instagramConfig;
            AuthInfo = authInfo;
            Uri = VkontakteConfig.ApiUri.TrimEnd('/') + '/' + endpoint.TrimStart('/');
        }
    }
}
